/*
 * PolizPosition.cpp
 *
 *  Created on: 30.04.2012
 *      Author: Eugene Kornykhin
 */

#include "PolizPosition.h"

PolizPosition::PolizPosition()
: position(0)
{

}

PolizPosition::PolizPosition(Poliz::index_type p)
: position(p) {

}

PolizPosition::~PolizPosition() {

}

Poliz::index_type PolizPosition::getPosition() const {
	return position;
}

PolizPosition PolizPosition::next() const {
	return position+1;
}

bool PolizPosition::operator==(PolizPosition p) const {
	return position == p.position;
}

bool PolizPosition::operator!=(PolizPosition p) const {
	return position != p.position;
}

bool PolizPosition::operator<(PolizPosition p) const {
	return position < p.position;
}
bool PolizPosition::operator<=(PolizPosition p) const {
	return position <= p.position;
}
bool PolizPosition::operator>(PolizPosition p) const {
	return position > p.position;
}
bool PolizPosition::operator>=(PolizPosition p) const {
	return position >= p.position;
}
